package com.tiancheng.trade.settlement.bo;

import lombok.Data;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;

/**
 * 订单数据明细统计查询实体
 *
 * @author kellen
 * @date 2021/5/20
 */
@Data
public class ServiceDetailCountRequestBO {
    /**
     * 统计周期起始日
     */
    private String dayCycleStart;
    /**
     * 统计周期结束日
     */
    private String dayCycleEnd;
    /**
     * 统计年
     */
    @Min(1900)
    @Max(9999)
    private Integer year;
    /**
     * 场景
     */
    private String orderSource;
    /**
     * 组织机构编码
     */
    private String organizationCode;
    /**
     * 商户编码
     */
    private String merchantCode;

    private Integer currentPage;

    private Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize || pageSize < 0) {
            pageSize = 10;
        }
        return pageSize;
    }
}
